﻿using System;
using System.Net;

namespace MC2Development.DevWebServer
{
    /// <summary>
    /// Request handler details
    /// </summary>
    public class Handler
    {
        /// <summary>
        /// The type of handler to use
        /// </summary>
        public HandlerType HandlerType { get; set; }

        /// <summary>
        /// The path to the content for file based handlers
        /// </summary>
        public String ContentPath { get; set; }

        /// <summary>
        /// A custom request handler method
        /// </summary>
        public Action<HttpListenerContext> RequestHandlerAction { get; set; }
    }
}
